package com.stool.cloud.api;

import com.stool.cloud.common.CommonResult;
import com.stool.cloud.entity.Order;
import com.stool.cloud.service.IOrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Felix YF Dong
 * @Description
 * @Date 2023/2/14
 */
@RestController
public class OrderApi {
    @Resource
    private IOrderService IOrderService;

    @GetMapping("/order/create")
    public CommonResult<?> create(Order order) {
        IOrderService.create(order);
        return new CommonResult(200, "订单创建成功");
    }

}
